package 验证二叉搜索树;

public class Test {
    public static void main(String[] args) {
        TreeNode root = new TreeNode(2);
        root.left = new TreeNode(1);
        root.right = new TreeNode(3);

        Solution2 solution = new Solution2();
        boolean isValid = solution.isValidBST(root);
        System.out.println("Is valid BST: " + isValid);
    }
}
